(Man-fontify-manpage): Render section headings in
authorEli Zaretskii <eliz@is.elta.co.il>
Mon, 16 Feb 2004 18:20:31 +0000 (18:20 +0000)
committerEli Zaretskii <eliz@is.elta.co.il>
Mon, 16 Feb 2004 18:20:31 +0000 (18:20 +0000)
`Man-overstrike-face' even when overstrike was not used by man
formatter for section headings.

lisp/man.el

index faf153bc4c492a8482026986af7201a55692b07e..0e665af723e4872749bc278491abc32a35cdedf1 100644 (file)
@@ -801,6 +801,11 @@ Same for the ANSI bold and normal escape sequences."
   ;; Try to recognize common forms of cross references.
   (Man-highlight-references)
   (Man-softhyphen-to-minus)
+  (goto-char (point-min))
+  (while (re-search-forward Man-heading-regexp nil t)
+    (put-text-property (match-beginning 0)
+                      (match-end 0)
+                      'face Man-overstrike-face))
   (message "%s man page formatted" Man-arguments))
 
 (defun Man-highlight-references ()